package tech.wowo.service;

import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.wowo.mapper.VoteActivityMapper;
import tech.wowo.pojo.VoteActivity;

import java.util.List;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
@Service
@Log4j
public class VoteActivityServiceImpl implements VoteActivityService {

    @Autowired
    private VoteActivityMapper voteActivityMapper;

    @Override
    public List<VoteActivity> getVoteActivityList() {
        return voteActivityMapper.getVoteActivityList();
    }

    @Override
    public Integer addvoteactivity(VoteActivity voteActivity) {
        return voteActivityMapper.addvoteactivity(voteActivity);
    }
}
